package com.heima.model.article.pojos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * APP已发布文章配置表
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
@TableName("ap_article_config")
@ApiModel(value = "ApArticleConfig对象", description = "APP已发布文章配置表")
public class ApArticleConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 文章ID
     */
    @ApiModelProperty(value = "文章ID")
    @TableField("article_id")
    private Long articleId;
    /**
     * 是否可评论
     */
    @ApiModelProperty(value = "是否可评论")
    @TableField("is_comment")
    private Integer isComment;
    /**
     * 是否转发
     */
    @ApiModelProperty(value = "是否转发")
    @TableField("is_forward")
    private Integer isForward;
    /**
     * 是否下架
     */
    @ApiModelProperty(value = "是否下架")
    @TableField("is_down")
    private Integer isDown;
    /**
     * 是否已删除
     */
    @ApiModelProperty(value = "是否已删除")
    @TableField("is_delete")
    private Integer isDelete;

}
